package action;

import framework.mvc.annotation.Action;
import framework.mvc.annotation.Controller;
import framework.mvc.annotation.Result;
import framework.mvc.enu.ResultType;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Controller
public class OrderAction {

    @Action(path = "/order/create",results = {
            @Result(name = "success",path = "/showSuccess",type = ResultType.REDIRECT)
    })
    public String create(HttpServletRequest request, HttpServletResponse response){
        System.out.println("OrderAction.create()");

        return "success?no=123";
    }


}
